package com.study.talk.adapter;


import androidx.recyclerview.widget.RecyclerView;


import com.study.talk.app.base.BaseActivity;

import java.util.List;

abstract public class MyRecycleViewAdapter<T,VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> {

    public List<T> data;

    public BaseActivity activity;


    public MyRecycleViewAdapter(List<T> data,BaseActivity activity){
        this.data = data;
        this.activity = activity;
    }

    @Override
    public int getItemCount() {
        return data.size();
    }
}
